package com.muyu.danmo.domain;


import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 旗舰店对象 danmo_shopping_flagship
 * 
 * @author yangle
 * @date 2024-12-17
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class DanmoShoppingFlagship extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商铺唯一标识 */
    private Long id;

    /** 店铺拥有者id */
    @Excel(name = "店铺拥有者id")
    private Long userId;

    /** 商铺名称 */
    @Excel(name = "商铺名称")
    private String name;

    /** 商铺描述 */
    @Excel(name = "商铺描述")
    private String description;

    /** 品牌名称 */
    @Excel(name = "品牌名称")
    private Long brandName;

    /** 商铺类别 */
    @Excel(name = "商铺类别")
    private String category;

    /** 商铺位置 */
    @Excel(name = "商铺位置")
    private String location;

    /** 联系电话 */
    @Excel(name = "联系电话")
    private String contactNumber;

    /** 商铺LOGO链接 */
    @Excel(name = "商铺LOGO链接")
    private String logoUrl;

    /** 关注者数量 */
    @Excel(name = "关注者数量")
    private Long followerCount;

    /** 评分 */
    @Excel(name = "评分")
    private BigDecimal rating;

    /** 评论数量 */
    @Excel(name = "评论数量")
    private Long reviewCount;

    /** 是否为旗舰店 */
    @Excel(name = "是否为旗舰店")
    private String isFlagship;

    /** 售后保障 */
    @Excel(name = "售后保障")
    private BigDecimal afterSalesProtection;

    /** 商品质量 */
    @Excel(name = "商品质量")
    private BigDecimal commodityQuality;

    /** 物流速度 */
    @Excel(name = "物流速度")
    private BigDecimal logisticsSpeed;

    /** 销量 */
    @Excel(name = "销量")
    private Long sales;

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("name", getName())
            .append("description", getDescription())
            .append("brandName", getBrandName())
            .append("category", getCategory())
            .append("location", getLocation())
            .append("contactNumber", getContactNumber())
            .append("logoUrl", getLogoUrl())
            .append("followerCount", getFollowerCount())
            .append("rating", getRating())
            .append("reviewCount", getReviewCount())
            .append("isFlagship", getIsFlagship())
            .append("afterSalesProtection", getAfterSalesProtection())
            .append("commodityQuality", getCommodityQuality())
            .append("logisticsSpeed", getLogisticsSpeed())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("sales", getSales())
            .append("remark", getRemark())
            .toString();
    }
}
